package com.zzt.blog;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-04-05
 * Time: 19:11
 */
public class DateUtils {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println("date:" + date);
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
        String format = dateFormat.format(date);
        System.out.println("format:" + format);
//        private long createTime;
        System.out.println(date.getTime());
        System.out.println(System.currentTimeMillis());
    }
}
